<template>
	<view class="collection-page">
		<MyCommitCardVue class="card-box" :cardData="likeData"></MyCommitCardVue>
	</view>
</template>

<script setup>
	import { ref } from 'vue'
	import MyCommitCardVue from '../MyCommunity/components/MyCommitCard.vue';
	import { GetMyCollect } from '@/config/API/commit';
	import {onShow} from '@dcloudio/uni-app'

	const likeData = ref()
	onShow(async()=>{
		const resData = await GetMyCollect()
		likeData.value = resData.data
		console.log('我的社区收藏数据==》》',likeData.value)
	})
</script>

<style lang="scss" scoped>
.collection-page{
	width: 100%;
	min-height: 100vh;
	padding: 30rpx;
	box-sizing: border-box;
	.card-box{
		display: flex;
		flex-direction: column;
		gap: 80rpx;
	}
}
</style>
